﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.ProcessManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProcessManagement.ProcessRouteItemVMs
{
    public partial class ProcessRouteItemBatchVM : BaseBatchVM<ProcessRouteItem, ProcessRouteItem_BatchEdit>
    {
        public ProcessRouteItemBatchVM()
        {
            ListVM = new ProcessRouteItemListVM();
            LinkedVM = new ProcessRouteItem_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class ProcessRouteItem_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._ProcessRouteItem._Routie")]
        public long? RoutieId { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._GroupCode")]
        public string GroupCode { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._OpCode")]
        public string OpCode { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._OpName")]
        public string OpName { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._OpType")]
        public OpTypeEnum? OpType { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._ErpOpCode")]
        public string ErpOpCode { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._StdOpDuration")]
        public decimal? StdOpDuration { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._StdPrepDuration")]
        public decimal? StdPrepDuration { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._PolicyCheckPrevProc")]
        public PolicyCheckPrevProcEnum? PolicyCheckPrevProc { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._PolicyCheckProcBom")]
        public PolicyCheckProcBomEnum? PolicyCheckProcBom { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._PolicyCheckProcess")]
        public PolicyCheckProcessEnum? PolicyCheckProcess { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._CtlAttr")]
        public ProcCtlAttrEnum? CtlAttr { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._Pos")]
        public int? Pos { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._Etag")]
        public string Etag { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._Active")]
        public bool? Active { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._EquipmentId")]
        public long? EquipmentId { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._EquipmentCode")]
        public string EquipmentCode { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._Aux_1")]
        public string Aux_1 { get; set; }
        [Display(Name = "_Model._ProcessRouteItem._Aux_2")]
        public string Aux_2 { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}